package com.youmu.sichuansfc.domain;

import javax.persistence.*;
import java.sql.Date;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "youmu_fund_manager_staff", schema = "youmu", catalog = "")
public class YoumuFundManagerStaff {
    private Long id;
    private Timestamp addTime;
    private Integer status;
    private String name;
    private String duties;
    private String tel;
    private String email;
    private Long fundManagerId;
    private Boolean isDelete;
    private String partnerLocDetail;

    public void setId(long id) {
        this.id = id;
    }

    public void setFundManagerId(long fundManagerId) {
        this.fundManagerId = fundManagerId;
    }


    @Id
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "add_time")
    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    @Basic
    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "duties")
    public String getDuties() {
        return duties;
    }

    public void setDuties(String duties) {
        this.duties = duties;
    }

    @Basic
    @Column(name = "tel")
    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    @Basic
    @Column(name = "email")
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Basic
    @Column(name = "fund_manager_id")
    public Long getFundManagerId() {
        return fundManagerId;
    }

    public void setFundManagerId(Long fundManagerId) {
        this.fundManagerId = fundManagerId;
    }

    @Basic
    @Column(name = "is_delete")
    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Boolean delete) {
        isDelete = delete;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        YoumuFundManagerStaff that = (YoumuFundManagerStaff) o;
        return id == that.id &&
                fundManagerId == that.fundManagerId &&
                Objects.equals(addTime, that.addTime) &&
                Objects.equals(status, that.status) &&
                Objects.equals(name, that.name) &&
                Objects.equals(duties, that.duties) &&
                Objects.equals(tel, that.tel) &&
                Objects.equals(email, that.email) &&
                Objects.equals(isDelete, that.isDelete);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, addTime, status, name, duties, tel, email, fundManagerId, isDelete);
    }

    @Basic
    @Column(name = "partner_loc_detail")
    public String getPartnerLocDetail() {
        return partnerLocDetail;
    }

    public void setPartnerLocDetail(String partnerLocDetail) {
        this.partnerLocDetail = partnerLocDetail;
    }
}
